package com.qboot.system.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.*;
import com.qboot.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;


/**
 * 部门 实体类
 *
 * @author Tellsea
 * @date 2022-12-17
 */
@Data
@ApiModel("部门")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class SysDept extends BaseEntity {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 父级ID
     */
    @Excel(name = "父级ID")
    private Long parentId;
    /**
     * 部门名称
     */
    @Excel(name = "部门名称")
    private String deptName;
    /**
     * 联系人
     */
    @Excel(name = "联系人")
    private String concatMan;
    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    private String concatPhone;
    /**
     * 联系邮箱
     */
    @Excel(name = "联系邮箱")
    private String email;
    /**
     * 是否启用 1-是 2-否
     */
    @Excel(name = "是否启用 1-是 2-否")
    private Long isEnable;
    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;
    /**
     * 排序
     */
    @Excel(name = "排序")
    private Long sort;
    /**
     * 数据状态 1-正常 2-删除
     */
    @TableLogic
    @ApiModelProperty(hidden = true)
    @TableField(fill = FieldFill.INSERT)
    private Integer deleteStatus;
}
